package com.avantis.common.repository;

import com.avantis.common.entity.CommonCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: tracywang
 * @Date: 2019/1/16
 * @Descrption:
 */
@Repository
public interface CommonCodeRepository extends JpaRepository<CommonCode, Integer>, JpaSpecificationExecutor {

    List<CommonCode> findCommonCodesByCodeTypeAndParentId(String codeType,String parentId);

}
